import request from './../utils/request'
import { AxiosResponse } from 'axios'
export interface ILoginParams {
  adminname: string
  password: string
}
export function login (params: ILoginParams): Promise<AxiosResponse<any>> {
  return request(
    {
      url: '/admin/login',
      data: params,
      method: 'POST'
    }
  )
}
